﻿@model QDT.Core.Deals.DealAgency
<div class="main_title">
    编辑 <a href="@Url.Action("AgencyList", "DealAgency")" class="back_list">返回列表</a></div>
<div class="blank5">
</div>
@using (Html.BeginForm("PostEditAgency", "DealAgency"))
{
    <table class="form">
        <tr>
            <td colspan="2" class="topTd"></td>
        </tr>
        <tr>
            <td class="item_title">机构名称:</td>
            <td class="item_input"><input type="text" class="textbox require" name="Name" value="@Model.Name"/><input type="hidden" name="ID" value="@Model.ID"/></td>
        </tr>
        <tr>
            <td class="item_title">简称:</td>
            <td class="item_input"><input type="text" class="textbox" name="ShortName" value="@Model.ShortName"/></td>
        </tr>
        <tr>
            <td class="item_title">地址:</td>
            <td class="item_input"><input type="text" class="textbox require" name="Address" value="@Model.Address"/></td>
        </tr>
        <tr>
            <td class="item_title">头部:</td>
            <td class="item_input"><textarea type="text" class="textarea" name="Header"  style=" height:150px;width:750px;">@Model.Header</textarea></td>
        </tr>
        <tr>
            <td class="item_title">公司概况:</td>
            <td class="item_input"><textarea type="text" class="textarea" name="CompanyBrief" style="height:200px;width:500px;">@Model.CompanyBrief</textarea></td>
        </tr>
        <tr>
            <td class="item_title">发展史:</td>
            <td class="item_input"><textarea type="text" class="textarea" name="History" style=" height:150px;width:750px;">@Model.History</textarea></td>
        </tr>
        <tr>
            <td class="item_title">内容:</td>
            <td class="item_input"><textarea type="text" class="textarea" name="Content" style=" height:350px;width:750px;display: block;">@Model.Content</textarea></td>
        </tr>
        <tr>
            <td class="item_title">状态:</td>
            <td class="item_input">
                <label>有效<input type="radio" name="IsEffect" value="true" checked="checked" /></label>
                <label>无效<input type="radio" name="IsEffect" value="false" /></label>
            </td>
        </tr>
        <tr>
            <td class="item_title">排序:</td>
            <td class="item_input"><input type="text" class="textbox" name="Sort" value="@Model.Sort"/></td>
        </tr>
        <tr>
		    <td class="item_title"></td>
		    <td class="item_input">
			    <!--隐藏元素-->
			    <input type="submit" class="button" value="编辑" />
			    <input type="reset" class="button" value="重置" />
		    </td>
	    </tr>
        <tr>
            <td colspan="2" class="bottomTd"></td>
        </tr>
    </table>
}

<script type="text/javascript">
    var editor;
    KindEditor.ready(function (keditor) {
        editor = keditor.create('textarea[name="Content"]', {
            uploadJson: '/Home/UploadImage',
            allowFileManager: true
        });
        editor = keditor.create('textarea[name="History"]', {
            uploadJson: '/Home/UploadImage',
            allowFileManager: true
        });
        editor = keditor.create('textarea[name="Header"]', {
            uploadJson: '/Home/UploadImage',
            allowFileManager: true
        });
    });
</script>